<?php
declare (strict_types = 1);
namespace app\user\service\user;

use app\common\service\BaseService;
use think\facade\Request;
use app\user\logic\user\Visitor as VisitorLogic;

/**
 * 最近访客接口类
 */
class Visitor extends BaseService
{

    public function recentVisitors()
    {
    	$user_id = Request::has('user_id', 'get', true) ? Request::get('user_id/d') : 0;
        $data    = app(VisitorLogic::class)->recentVisitors($user_id);
        return $this->parseToData($data, 1, '获取成功');
    }

}
